package com.soxing.webrain.brush.common.util;

import javax.servlet.http.HttpServletResponse;
import java.io.PrintWriter;

public class WebUtil {

	public static void write(HttpServletResponse response, String content) {
		PrintWriter writer = null;
		try {
			writer = response.getWriter();
			response.setCharacterEncoding("UTF-8");
			writer.print(content);
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			writer.close();
		}
	}
}
